package com.itheima.tlias84.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 班级的实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Clazz {
    private Integer id;
    private String name;
    private LocalDate beginDate;
    private LocalDate endDate;
    private Integer masterId;
    @JsonIgnore //忽略该字段
    private String masterName;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private Integer subject;


}
